package cn.com.pureAppApi.exception;

/**
 * InnoDB free: 10240 kB
 *
 * QQ讨论群:76989293
 * @email 2696701142@qq.com
 * @date 2018-06-12 16:51:48
 */
public enum ResponseCodeEnum {

	OK(0,"操作成功" ),
	UNAUTHORIZED(401,"用户未登录"),
	ERROE(0,"系统错误" ),
	YEARERROR(1010,"请选择同一年的季度"),
	USERNOTEXIST(402,"用户不存在"),
	DATAEXIST(403,"数据已存在,不可重复存储"),
	OTHER(500,"请求失败"),
	SIGNERROR(501,"签名出错，请检查网络是否安全"),
	H5_USERREG_VAIL_ERROR(503,"验证码错误"),
	OPENID_TODAY_BIND(504,"微信账号今天已被绑定，明天再试!"),
	PARAMEROR(100,"参数错误"),
	WordError(1234, "内容中包含敏感词"),
	AcountNoExits(2002,"账号不存在！"),
	ACCOUNTSTOP(601,"帐号被禁用"),
	PWDERROR(607,"用户名或者密码不正确"),
	ACCOUNTNOTREGIST(602,"帐号未注册"),
	GAMELOGINERROR(610,"用户名或者密码不正确"),
	PHONEERRER(950,"手机号码格式错误"),
	SMSMAXCOUNT(951,"短信每日发送数量已达上限"),
	SMSSENDOFTEN(952,"短信发送频繁请稍后再试"),
	WECHAT_OPENID_EXIST(991,"该微信已授权过其他账号\n请更换微信账号后重新授权"),
	WECHAT_OPENID_NOT_EXIST(401,"请绑定微信！"),
	PROMOTION_NOT_EXIST(992,"当前邀请记录已不存在"),

	WECHAT_OPENID_IS_EXIST(991,"该微信已绑定其他帐号，请先解绑再次进行绑定！"),

	WXShareFailed(11001,"微信分享异常！"),
	WXShareSignatureFailed(11002,"微信分享生成签名失败！"),
	OLDPWDERROR(952,"原密码错误"),
	OLDPWDNUll(953,"原密码不可为空"),
	NEWPWDNUll(954,"新密码不可为空"),
	NEWPWDNOTCONFORM(955,"新密码格式不正确"),
	NOAD(956,"暂无广告"),
	TWOPWDERROR(967,"两次密码不一致"),
	CODEERROR(968,"验证码已失效，请重新发送"),
	CODENOTSAME(969,"验证码不正确"),
	BINDING(606,"请绑定手机号"), 
	 
	HAVEACCOUNT(603,"帐号已被注册"),
	DEVICESBINDING(604,"一部手机设备不能注册多个帐号"),
	EXCHANGETEL(605,"您已使用其他账号登录该设备，为了您的账户安全，请明天再来吧~"),
	BINDINGTELCODE(608,"验证码校验次数过多，请明天再试！"),	 
	DIANJIFAST(11012,"操作频繁，请稍后再试"),
	/**
	 * 查询不存在
	 */
	DOESNOTEXIST(703,"查询不存在"),
	MEMBER_IS_EXIST(102,"请勿重复提交申请！"),
	TELBINDING(607,"手机号已经被绑定过");

	
	
	private int code;
	
	private String message;

	ResponseCodeEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}

	/**
	 * 获取code
	 * 
	 * @return
	 */
	public int getCode() {
		return this.code;
	}

	/**
	 * 获取message
	 * 
	 * @return
	 */
	public String getMessage() {
		return this.message;
	}


}
